package com.cloud.api.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum AuthorizationStatusEnum implements IEnum<Integer> {

    UNAUTHORIZED(0, "未授权"),
    AUTHORED(1, "已授权");
    @EnumValue
    @JsonValue
    private int value;

    private String desc;

    AuthorizationStatusEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
